package com.fkg.test.LogUtils;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.fkg.test.R;
import com.orhanobut.logger.Logger;

public class LogActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.log);

        //自定义logutils
        /*LogUtils.d("debug");
        LogUtils.e("error");
        LogUtils.w("wwwwww");
        LogUtils.wtf("wtf");*/


        //使用三方框架打印
        /*String json = "{\n" +
                "\"number\":123,\n" +
                "\"object\":{\n" +
                "\"a\": \"b\",\"c\": \"d\"}," +
                "\"string\":\"Hello World\"\n" +
                "}";
        Logger.json(json);

        String xml = "<map><key>message</key></map>";
        Logger.xml(xml);*/

    }
}
